﻿<controls:ChildWindow x:Class="AdventureWorksLT.Views.Customers.ChildWindows.CustomerAddCW"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:controls="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls"
mc:Ignorable="d"
xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
Title="Customer"
Background="AliceBlue"
xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
<!--15 Fields --> 
<Grid x:Name="LayoutRoot" >

        <Border BorderBrush="#FF505050"  BorderThickness="2"  CornerRadius="10">
            <Border.Background>
                <LinearGradientBrush EndPoint="0.5,1" StartPoint="0.5,0">
                    <GradientStop Color="#ED71A5D8" Offset="0.8" />
                    <GradientStop Color="AliceBlue" Offset="1.09" />
                </LinearGradientBrush>
          </Border.Background>

<ScrollViewer x:Name="scrollViewerCustomer" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto" >
<Grid HorizontalAlignment="Left" x:Name="CustomerGrid" VerticalAlignment="Top">
<Grid.RowDefinitions>
<RowDefinition Height="32" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
    <ColumnDefinition Width="30" />
    <ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="Auto" />
	<ColumnDefinition Width="50" />
	<ColumnDefinition Width="Auto" />
	<ColumnDefinition Width="Auto" />
    <ColumnDefinition Width="Auto" />
</Grid.ColumnDefinitions>


<StackPanel Grid.Column="1" Grid.Row="1" Orientation="vertical"  >
<TextBlock Height="20" Margin="0,5" ToolTipService.ToolTip="Id" ToolTipService.Placement="Right" Text="Id:"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Name Style" ToolTipService.Placement="Right" Text="Name Style:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Title" ToolTipService.Placement="Right" Text="Title:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="First Name" ToolTipService.Placement="Right" Text="First Name:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Middle Name" ToolTipService.Placement="Right" Text="Middle Name:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Last Name" ToolTipService.Placement="Right" Text="Last Name:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Suffix" ToolTipService.Placement="Right" Text="Suffix:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Company Name" ToolTipService.Placement="Right" Text="Company Name:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Sales Person" ToolTipService.Placement="Right" Text="Sales Person:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Email Address" ToolTipService.Placement="Right" Text="Email Address:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Phone" ToolTipService.Placement="Right" Text="Phone:"  Margin="0,5" Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Password Hash" ToolTipService.Placement="Right" Text="Password Hash:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Password Salt" ToolTipService.Placement="Right" Text="Password Salt:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Rowguid" ToolTipService.Placement="Right" Text="Rowguid:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />
<TextBlock Height="20" ToolTipService.ToolTip="Modified Date" ToolTipService.Placement="Right" Text="Modified Date:"  Margin="0,5" Foreground="#FF7635FC" FontWeight="Bold"  Width="180" TextWrapping="Wrap" FontFamily="Portable User Interface" FontSize="11" TextTrimming="None" />

</StackPanel>
<StackPanel Grid.Column="2" Grid.Row="1" Orientation="vertical"  >
<TextBlock  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="CustomerIDTextBox" Text="{Binding Path=CustomerID, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" />
<CheckBox ToolTipService.ToolTip="Name Style" ToolTipService.Placement="Right" Content=""  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="NameStyleCheckBox" IsChecked="{Binding Path=NameStyle, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left" />
<TextBox ToolTipService.ToolTip="Title" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="TitleTextBox" Text="{Binding Path=Title, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="8"/>
<TextBox ToolTipService.ToolTip="First Name" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="FirstNameTextBox" Text="{Binding Path=FirstName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  Background="#FFFFFFDC"  MaxLength="50"/>
<TextBox ToolTipService.ToolTip="Middle Name" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="MiddleNameTextBox" Text="{Binding Path=MiddleName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="50"/>
<TextBox ToolTipService.ToolTip="Last Name" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="LastNameTextBox" Text="{Binding Path=LastName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  Background="#FFFFFFDC"  MaxLength="50"/>
<TextBox ToolTipService.ToolTip="Suffix" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="SuffixTextBox" Text="{Binding Path=Suffix, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="10"/>
<TextBox ToolTipService.ToolTip="Company Name" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="CompanyNameTextBox" Text="{Binding Path=CompanyName, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="128"/>
<TextBox ToolTipService.ToolTip="Sales Person" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="SalesPersonTextBox" Text="{Binding Path=SalesPerson, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="256"/>
<TextBox ToolTipService.ToolTip="Email Address" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="EmailAddressTextBox" Text="{Binding Path=EmailAddress, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="50"/>
<TextBox ToolTipService.ToolTip="Phone" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="PhoneTextBox" Text="{Binding Path=Phone, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  MaxLength="25"/>
<TextBox ToolTipService.ToolTip="Password Hash" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="PasswordHashTextBox" Text="{Binding Path=PasswordHash, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  Background="#FFFFFFDC"  MaxLength="128"/>
<TextBox ToolTipService.ToolTip="Password Salt" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="PasswordSaltTextBox" Text="{Binding Path=PasswordSalt, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  Background="#FFFFFFDC"  MaxLength="10"/>
<TextBox ToolTipService.ToolTip="Rowguid" ToolTipService.Placement="Right" Height="26" HorizontalAlignment="Left" Margin="2" x:Name="rowguidTextBox" Text="{Binding Path=rowguid, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left"  Background="#FFFFFFDC" />
<sdk:DatePicker ToolTipService.ToolTip="Modified Date" ToolTipService.Placement="Right"  Height="26" HorizontalAlignment="Left" Margin="2" x:Name="ModifiedDateDatePicker" SelectedDate="{Binding Path=ModifiedDate, Mode=TwoWay, NotifyOnValidationError=true, ValidatesOnExceptions=true, TargetNullValue=''}" VerticalAlignment="Center" Width="120" HorizontalContentAlignment="Left" />

</StackPanel>
                        <StackPanel Margin="0,10" Grid.Column="0" Grid.Row="2" Orientation="Horizontal"  Grid.ColumnSpan="3">
                            <toolkit:DataForm CommandButtonsVisibility="None" HorizontalAlignment="Center" x:Name="CustomerDataForm" VerticalAlignment="Center" Height="23" Width="75" EditEnded="CustomerDataForm_EditEnded" AutoCommit="False" AutoEdit="False" AutoGenerateFields="False" IsEnabled="False" Visibility="Collapsed" />
                            <Button x:Name="CancelButton" Content="Cancel" Width="75" Height="23" HorizontalAlignment="Right" Click="CancelButton_Click" />
                            <Button x:Name="OKButton" Content="Save" Width="75" Height="23" HorizontalAlignment="Right" Click="OKButton_Click" />
                        </StackPanel>
    
    
      
        </Grid>
        </ScrollViewer>
        </Border>
    </Grid>
</controls:ChildWindow>
